package cn.chrilwe.pigpig.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.chrilwe.pigpig.core.model.user.Authority;

/**
 * 
 * @author chrilwe 2020-8-8
 */
public interface AuthorityMapper {

	public void insertAuthority(Authority authority);

	public void updateAuthorityById(Authority authority);

	public List<Authority> selectAll(@Param("begin") int begin, @Param("size") int size, @Param("userId") int userId,
			@Param("roleId") int roleId);

	public List<Authority> selectByRoleIds(List<Integer> roleIdList);
	
	public Authority selectById(int id);
	
	public void deleteAuthorityById(int authId);
}
